<style type="text/css">
    .sm-st {
        background:#fff;
        padding:15px 20px;
        /*-webkit-border-radius:3px;
        -moz-border-radius:3px;
        border-radius:3px;
        margin-bottom:5px;
        -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
        box-shadow: 0 1px 0px rgba(0,0,0,0.05);*/
    }
    .sm-st-icon {
        width:60px;
        height:60px;
        display:inline-block;
        line-height:60px;
        text-align:center;
        font-size:30px;
        background:#eee;
        -webkit-border-radius:5px;
        -moz-border-radius:5px;
        border-radius:5px;
        float:left;
        margin-right:10px;
        color:#fff;
    }
    .sm-st-info {
        font-size:12px;
        padding-top:2px;
    }
    .sm-st-info span {
        display:block;
        font-size:24px;
        font-weight:600;
    }
    .orange {
        background:#fa8564 !important;
    }
    .tar {
        background:#45cf95 !important;
    }
    .sm-st .green {
        background:#86ba41 !important;
    }
    .pink {
        background:#AC75F0 !important;
    }
    .yellow-b {
        background: #fdd752 !important;
    }
    .stat-elem {
        background-color: #fff;
        padding: 18px;
        border-radius: 40px;
    }

    .stat-info {
        text-align: center;
        background-color:#fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
        box-shadow: 0 1px 0px rgba(0,0,0,0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }
    .st-green {
        background-color: #27C24C;
    }
    .st-violet {
        background-color: #7266ba;
    }
    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }
    .stats-container{margin: 20px;}
    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px;
        display: flex;
    }
    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }
    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 15px;
    }
    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }
    .stat.lg .name {
        font-size: 16px;
    }
    .stat-col{background: #f1f4f6;}
    .stat-col1{margin-bottom: 10px;}
    .stat-col2{padding-bottom: 15px;}
    .stat-col .progress {
        height:2px;
    }
    .stat-col .progress-bar {
        line-height:2px;
        height:2px;
    }
    .item {
        padding:30px 0;
    }
    .weipay{background: #fff;border: 1px solid #eee;padding: 15px;}
    .weipay img{width: 120px;}
    .checkbox{margin: 15px 0;}
    .box.box-info {
        border-top-color: #ffffff;
    }
    .box{box-shadow: none;padding: 0 20px;}
    .box-body{width: 15%;float: right;}
    .box-body .table td{background: #fff;border-top: 1px solid #fff;}
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <!-- <ul class="nav nav-tabs">
            <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li>
            <li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>
        </ul> -->
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="sm-st clearfix">
                            <div class="sm-st-info">
                                <span> {:__('Pay user')} : {$wxpay_app['name']}</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 col-xs-12">
                        <div class="sm-st clearfix">
                            <div class="sm-st-info">
                                <span> {:__('orig price')} : ￥{$shopOrder['orig_price']}</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <div class="card sameheight-item stats">
                            <div class="card-block">
                                <div class="row row-sm stats-container">
                                    <div class="col-xs-12 col-md-12 stat-col stat-col1">
                                        <div class="stat">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"> {:__('account balance pay')}
                                                </label>
                                            </div>
                                            <div class="name"> {:__('account balance', '<%=account_balance%>')} </div>
                                        </div>
                                        <!-- <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 30%"></div>
                                        </div> -->
                                    </div>

                                    <div class="col-xs-12 col-md-12  stat-col stat-col2">
                                        <div class="stat">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"> {:__('other pay')}
                                                </label>
                                            </div>
                                            <!-- <div class="value"> </div> -->
                                            <div class="name"> {:__('other pay tips')} </div>
                                        </div>
                                        <div class="col-md-12 weipay">
                                            <img src="/assets/img/weipay.png" alt="weipay" />
                                        </div>
                                        <!-- <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div> -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-lg-12">
                        <div class="box box-info">
                            <div class="box-header"><h3 class="text-right">{:__('payment price')}: ￥{$shopOrder['payment_price']}</h3></div>
                            <div class="box-body">
                                <table class="table table-striped">
                                    <tbody>
                                    {eq name="ispaid" value="true"}
                                    <tr>
                                        <td>{:__('ispaid')}</td>
                                    </tr>
                                    {else/}
                                    <tr>
                                        <td><a href="{$createorder}" target="_blank" type="button" class="btn btn-block btn-warning">{:__('Pay now')}</a></td>
                                    </tr>
                                    {/eq}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>


                </div>

            </div>
            <div class="tab-pane fade" id="two">
                <div class="row">
                    <div class="col-xs-12">
                        {:__('Custom zone')}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="newstpl" type="text/html">
    <ul class="nav nav-stacked">
        <%for(var i=0;i < news.length;i++){%>
        <%var item=news[i];%>
        <li>
            <a href="<%=item.url%>" target="_blank">
                <span class="text"><%=item.title%></span>
            </a>
        </li>
        <%}%>
    </ul>
</script>
<script id="discussiontpl" type="text/html">
    <ul class="products-list product-list-in-box">
        <%for(var i=0;i < news.length;i++){%>
        <%var item=news[i];%>
        <li class="item">
            <div class="">
                <a href="<%=item.url%>" target="_blank" class="product-title"><%=item.title%>
                    <span class="label label-warning pull-right"><%=item.comments_count%></span></a>
                <span class="product-description">
                    <%=item.last_time%>
                </span>
            </div>
        </li>
        <%}%>
    </ul>
</script>